package com.twu.biblioteca;

import java.util.ArrayList;

public class UserDetail extends User{
    private String userId;
    private String password;
    private ArrayList<BookDetail> booksIssued;
    private ArrayList<MovieDetail> movieIssued;


    public UserDetail(User user, String userId, String password) {
        super(user);
        this.userId = userId;
        this.password = password;
    }


    public boolean validate(String password) {
        return this.password.equals(password);
    }

    public String getUserId() {
        return userId;
    }
}
